package edu.gdin.ecommerce.service;

import java.math.BigDecimal;

import edu.gdin.ecommerce.model.CardBatch;
import edu.gdin.ecommerce.model.User;
import edu.gdin.ecommerce.util.Pager;

public interface ICardBatchService {

	/**
	 * 生成库存卡
	 * @param batch
	 * @param user
	 * @param faceValue
	 */
	public void makeCardByBatch(CardBatch batch, User user, BigDecimal faceValue);
	
	/**
	 * 根据条件查询CardBatch
	 * @param batch
	 * @param operTime1
	 * @param operTime2
	 * @param currentPage
	 * @return
	 */
	public Pager queryBatch(CardBatch batch, String operTime1, String operTime2, int currentPage);
	
	/**
	 * 根据batchNo获取CardBatch
	 * @param batchNo
	 * @return
	 */
	public CardBatch getByBatchNo(String batchNo);
	
	/**
	 * 若该批次卡状态为1，export前改为2 - 1=卡号生成  2=卡文件生成
	 * @param batchNo
	 */
	public void exportStatus(String batchNo);
	
	/**
	 * 根据batchNo导出Inventory
	 * @param batchNo
	 * @return
	 */
	public String exportByBatchNo(String batchNo);
	
	/**
	 * 根据batchNo制卡  // 2=卡文件生成  3=已制卡
	 * @param batchNo
	 */
	public void makeCardStatus(String batchNo);
	
}
